package com.example.demo.service.impl;

import com.example.demo.bean.Car;
import com.example.demo.dao.CarMapper;
import com.example.demo.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarServiceImpl implements CarService {
    @Autowired
    CarMapper carMapper;

    @Override
    public List<Car> queryCar() {
        return carMapper.queryCar();
    }

    @Override
    public int insertCar(Car car) {
        return carMapper.insertCar(car);
    }

    @Override
    public int updateCar(Car car) {
        return carMapper.updateCar(car);
    }

    @Override
    public int delCar(int id) {
        return carMapper.delCar(id);
    }

    @Override
    public Car queryGoods(Car car) {
        return carMapper.queryGoods(car);
    }
}
